Skip to main content

Stop Console Logs

AutomatR.Web.StopConsoleLogs

The "Stop Console Logs" activity in AutomatR is designed for UI automation workflows, specifically targeting the Chrome browser. This activity allows you to stop capturing console logs in the Chrome browser, enhancing the efficiency of automation workflows that involve web applications.

Properties

NameDescription
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Stop Console Logs" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Stop Console Logs" activity onto the workflow.
  2. Optionally, configure the delay before executing the activity (Delay).
  3. Execute the workflow to stop capturing console logs in the Chrome browser.

Note: This activity is designed to work within the context of an "Open Browser" activity. Ensure that the "Stop Console Logs" activity is placed within the workflow after the "Open Browser" activity, as indicated by the constraint BrowserValidation.HasParentType<StopConsoleLogs, OpenBrowser>.

Example: Consider an example where the "Stop Console Logs" activity is used to stop capturing console logs after performing various actions on a web application:

Stop Console Logs:
Delay: 2 (seconds)

In this example, the activity stops capturing console logs in the Chrome browser with a 2-second delay before execution.